const { Maybe } = require('./support')

/**
 *
 * @param {number|null|undefined} num 一个数
 */
const ex4 = num => {
  return Maybe.of(num).map(parseInt)
}

console.log('执行ex4(1.22)的结果为', ex4(1.22))
